package com.intelligentmeterreadingsys.otherequipment.activity;

import com.intelligentmeterreadingsys.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

/**
 * 一键上传
 * @author king
 *
 */
public class EquipementUploadMainActivity extends Activity implements OnClickListener{
    
	public Button button1;//添加上传
	public Button button2;//修改上传
	public Button button3;//更换上传
	public Button button4;//巡检上传
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		
		super.onCreate(savedInstanceState);
		setContentView(R.layout.other_equipment_upload_main);
		init();
	}

	/**
	 * 初始化控件
	 */
	public void init(){
		button1=(Button)findViewById(R.id.other_equipment_main_addupload);
		button2=(Button)findViewById(R.id.other_equipment_main_modifyupload);
		button3=(Button)findViewById(R.id.other_equipment_main_replaceupload);
		button4=(Button)findViewById(R.id.other_equipment_main_queryupload);
		button1.setOnClickListener(this);
		button2.setOnClickListener(this);
		button3.setOnClickListener(this);
		button4.setOnClickListener(this);
	}
	@Override
	public void onClick(View v) {
		Intent intent=null;
		switch (v.getId()) {
		case R.id.other_equipment_main_addupload:
			intent=new Intent(this,EquipementAddUploadActivity.class );
			startActivity(intent);
			break;
		case R.id.other_equipment_main_modifyupload:
			intent=new Intent(this, EquipementModifyUploadActivity.class);
			startActivity(intent);
			break;
		case R.id.other_equipment_main_replaceupload:
			intent=new Intent(this, EquipementReplaceUploadActivity.class);
			startActivity(intent);
			break;
		case R.id.other_equipment_main_queryupload:
			intent=new Intent(this, EquipementCheckUploadActivity.class);
			startActivity(intent);
			break;
		default:
			break;
		}
		
	}
        
}
